package com.wyz.interior.user.controller;

import com.wyz.interior.common.response.Result;
import com.wyz.interior.common.response.ResultGenerator;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 订单控制器
 * @Author: wei yz
 * @Date: 2023/5/28
 */
@RequestMapping("/order")
@RestController
public class OrderController {


    @Value("${test.name:}")
    private String name;
    @Value("${test.num:}")
    private String num;

    @GetMapping("/v1/info")
    public Result username() {
        return ResultGenerator.genSuccessResult(String.format("名称：%s, 编号：%s", name, num));
    }
}
